<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
</head>

<body>
    <div id="info"></div>
    <script>
        var info = '<div>我系{{uname}}</div>';
        var uname = '渣渣辉';
        var res = info.replace('{{uname}}', uname);
        console.log(res);
        var div = document.getElementById('info');
        div.innerHTML = res;
    </script>
</body>

</html>